<extend name="Public/base" />
<block name="body">
<div class="m-tab s-tab">
	<h2 class="u-tt">后台菜单管理</h2>
	<ul>
		<li class="z-crt"><a href="{:U('index')}">菜单列表</a></li>
		<li><a href="{:U('add')}">添加菜单</a></li>
	</ul>
</div>
<table class="m-table m-table-row" id="table">
	<thead class="m-table-thead s-table-thead">
		<tr>
			<th class="cola">ID</th>
			<th class="colc">菜单名称</th>
			<th>链接地址</th>
			<th class="cola">是否隐藏</th>
			<th class="colb">操作</th>
		</tr>
	</thead>
	<tbody>
		<volist name="list" id="vo">
		<tr>
        <td>{$vo.id}</td>
        <td>{$vo.title_show}</td>
		<td>{$vo.url}</td>
		<td>{$vo.hide_text}</td>
		<td>
			<a href="{:U('edit?id='.$vo['id'])}">编辑</a>
			<a href="javascript:;" data="{$vo.id}" url="{:U('delete')}" class="u-del-id">删除</a>
		</td>
		</tr>
		</volist>
	</tbody>
</table>
<div class="m-table-tool">
	<div class="m-page">{$_page}</div>
</div>
</block>
<block name="script">
<script>
Do.ready('base','dialog',function() {
	$('#table').duxTable();
});
</script>	
</block>